home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / sp3_39.exe / NTAS / OEMNADLT.IN_ / OEMNADLT.IN
INI File  |  1994-10-04  |  23KB  |  588 lines

  1. [Identification]
  2.    OptionType = NetAdapter
  3. [PlatformsSupported]
  4.    ISA
  5.    EISA
  6.    "Jazz-Internal Bus"
  7. [Options]
  8.    LT200
  9. [IOBaseAddrChoices]
  10. IOBase_1  = "0x200",512
  11. IOBase_2  = "0x240",576
  12. IOBase_3  = "0x260",608
  13. IOBase_4  = "0x2A0",672
  14. IOBase_5  = "0x300",768
  15. IOBase_6  = "0x320",800
  16. IOBase_7  = "0x330",816
  17. IOBase_8  = "0x340",832
  18. IOBase_9  = "0x350",848
  19. [FileConstants]
  20. UtilInf                 = "UTILITY.INF"
  21. SubInf                  = "SUBROUTN.INF"
  22. SoftwareType    = "driver"
  23. Manufacturer            = "Microsoft"
  24. ProductMajorVersion     = "3"
  25. ProductMinorVersion     = "1"
  26. ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)
  27. ProductSoftwareName      = "lt200"
  28. ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\lt200.sys"
  29. NetRuleSoftwareType      = "Lt200Sys ltkndisDriver lt200Driver"
  30. NetRuleSoftwareUse           = $(SoftwareType)
  31. NetRuleSoftwareBindForm  = """Lt200Sys"" yes no container"
  32. NetRuleSoftwareClass     = {"lt200Driver basic","ltkndisDriver basic yes"}
  33. NetRuleSoftwareBindable  = {"lt200Driver lt200Adapter non exclusive 100",+
  34.                             "ltkndisDriver lt200Driver non non 100"}
  35. ProductEventDll                  = "%SystemRoot%\System32\netevent.dll"
  36. ProductHardwareName      = "lt200"
  37. NetRuleHardwareType      = "lt200 lt200Adapter"
  38. NetRuleHardwareBindForm  = " yes yes container"
  39. NetRuleHardwareClass     = {"lt200Adapter basic"}
  40. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  41. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  42. CardKey         = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
  43. ProductInfName  = "oemnadlt.inf"
  44. [GeneralConstants]
  45. KeyNull                         = ""
  46. MAXIMUM_ALLOWED                 = 33554432
  47. RegistryErrorIndex              = NO_ERROR
  48. KeyProduct                  = ""
  49. KeyParameters                   = ""
  50. TRUE                        = 1
  51. FALSE                       = 0
  52. NoTitle                     = 0
  53. !DebugOutputControl = 1
  54. [date]
  55. Now = {} ? $(!LIBHANDLE) GetSystemDate
  56. [Identify]
  57.    read-syms Identification
  58.    set Status     = STATUS_SUCCESSFUL
  59.    set Identifier = $(OptionType)
  60.    set Media      = #("Source Media Descriptions", 1, 1)
  61.    Return $(Status) $(Identifier) $(Media)
  62. [ReturnOptions]
  63.    set Status        = STATUS_FAILED
  64.    set OptionList     = {}
  65.    set OptionTextList = {}
  66.    set LanguageList = ^(LanguagesSupported, 1)
  67.    Ifcontains(i) $($0) in $(LanguageList)
  68.       ifstr(i) $($1) == ""
  69.                  goto returnoptions
  70.       endif
  71.           set PlatformList = ^(PlatformsSupported, 1)
  72.           Ifcontains(i) $($1) in $(PlatformList)
  73.                  goto returnoptions
  74.           else
  75.                  set Status = STATUS_NOTSUPPORTED
  76.                  goto finish_ReturnOptions
  77.           endif
  78.    else
  79.           set Status = STATUS_NOLANGUAGE
  80.       goto finish_ReturnOptions
  81.    endif
  82. returnoptions = +
  83.    set OptionList     = ^(Options, 1)
  84.    set OptionTextList = ^(OptionsText$($0), 1)
  85.    set Status         = STATUS_SUCCESSFUL
  86. finish_ReturnOptions = +
  87.    Return $(Status) $(OptionList) $(OptionTextList)
  88. [InstallOption]
  89.    set Status   = STATUS_FAILED
  90.    set Option   = $($1)
  91.    set SrcDir       = $($2)
  92.    Set AddCopy  = $($3)
  93.    Set DoCopy       = $($4)
  94.    Set DoConfig = $($5)
  95.    set LanguageList = ^(LanguagesSupported, 1)
  96.    Ifcontains(i) $($0) NOT-IN $(LanguageList)
  97.      return STATUS_NOLANGUAGE
  98.    EndIf
  99.    StartWait
  100.    set-subst LF = "\n"
  101.    set-subst CR = "\r"
  102.    read-syms GeneralConstants
  103.    read-syms FileConstants
  104.    read-syms DialogConstants$(!STF_LANGUAGE)
  105.    read-syms FileConstants$(!STF_LANGUAGE)
  106.    detect date
  107.    set-title  $(FunctionTitle)
  108.    set CommonStatus = STATUS_SUCCESSFUL
  109.    EndWait
  110. Begin = +
  111.    Ifstr(i) $(!NTN_InstallMode) == deinstall
  112.           set StartLabel = removeadapter
  113.           Set RemoveonError = FALSE
  114.    else-Ifstr(i) $(!NTN_InstallMode) == Update
  115.           set StartLabel = UpgradeSoftware
  116.    else-Ifstr(i) $(!NTN_InstallMode) == bind
  117.       set StartLabel = bindingadapter
  118.    else-Ifstr(i) $(!NTN_InstallMode) == configure
  119.           set StartLabel = configureadapter
  120.       Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  121.                  Debug-Output "Cannot configure the localtalk driver software."
  122.          Shell $(UtilInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  123.          ifint $($ShellCode) != $(!SHELL_CODE_OK)
  124.                         goto ShellCodeError
  125.          endif
  126.          set Error = $($R0)
  127.                  Shell $(SubInf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(Error)
  128.                  goto usercancel
  129.       endif
  130.    else
  131.           set StartLabel = installadapter
  132.           set REMOVE_SOFTWARE = TRUE
  133.       set REMOVE_HARDWARE = {}
  134.           Set RemoveOnError = TRUE
  135.    endif
  136.    goto $(StartLabel)
  137. installadapter = +
  138.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  139.    Ifstr $(KeyProduct) != $(KeyNull)
  140.           GetRegValue $(KeyProduct) $(MajorVersion) VersionInfo
  141.           set VersionMajor = *($(VersionInfo), 4)
  142.           GetRegValue $(KeyProduct) $(MinorVersion) VersionInfo
  143.           set VersionMinor = *($(VersionInfo), 4)
  144.           set InstalledVersion = $(VersionMajor)"."$(VersionMinor)
  145.           ifstr(i) $(ProductVersion) == $(InstalledVersion)
  146.                  read-syms MiscErrorString1$(!STF_LANGUAGE)
  147.          Set Text = $(Version)$(ProductVersion)
  148.          Shell $(SubInf), SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(Text)$(ErrorString)
  149.          goto end
  150.           EndIf
  151.    EndIf
  152.    ifstr(i) $(!NTN_InstallMode) == "install"
  153.           Ifstr(i) $(!DoCopy) == "YES"
  154.                  ifstr(i) $(!STF_IDW) != "TRUE"
  155.                         Shell $(UtilInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  156.                  endif
  157.                  Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  158.                         Goto ShellCodeError
  159.                  Else-Ifstr(i) $($R0) == STATUS_FAILED
  160.                         Shell $(UtilInf) RegistryErrorString "ASK_SOURCE_FAIL"
  161.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  162.                            goto ShellCodeError
  163.                         endif
  164.                         set Error = $($R0)
  165.                         Goto end
  166.                  Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  167.                         Goto usercancel
  168.                  Endif
  169.                  Set SrcDir  = $($R1)
  170.           Endif
  171.    Endif
  172.    ifstr(i) $(!STF_IDW) != "TRUE"
  173.           install "Install-Initial"
  174.           ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  175.                  Set CommonStatus = STATUS_USERCANCEL
  176.                  goto end
  177.           Endif
  178.    EndIf
  179. adapteroptions = +
  180.    set IOBaseAddrValue = *($(IOBaseAddrList), 8)
  181.    read-syms FileDependentDlg$(!STF_LANGUAGE)
  182.    ui start "InputDlg"
  183.    ifstr(i) $(DLGEVENT) == "CONTINUE"
  184.           set IOBaseAddrIndex = $(Combo1Out)
  185.       ui pop 1
  186.    else-ifstr(i) $(DLGEVENT) == "EXIT"
  187.           set CommonStatus = STATUS_USERCANCEL
  188.       ui pop 1
  189.       goto usercancel
  190.    else
  191.           set CommonStatus = STATUS_USERCANCEL
  192.           ui pop 1
  193.           goto usercancel
  194.    endif
  195. installproduct = +
  196.    Set FLibraryErrCtl = 1
  197.    Shell $(UtilInf), AddSoftwareComponent, +
  198.                                          $(Manufacturer),+
  199.                                          $(ProductSoftwareName), +
  200.                                          $(ProductSoftwareName), +
  201.                                          $(ProductSoftwareName), +
  202.                                          $(ProductInfName), +
  203.                                          $(ProductSoftwareImagePath),+
  204.                                          "kernel", "NDIS", {}, "", $(ProductEventDll)
  205.    ifint $($ShellCode) != 0
  206.           goto ShellCodeError
  207.    endif
  208.    set RegistryErrorIndex = $($R0)
  209.    set KeyProduct      = $($R1)
  210.    Set SoftNetRulesKey = $($R2)
  211.    CloseRegKey $($R3)
  212.    CloseRegKey $($R4)
  213.    CloseRegKey $($R5)
  214.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  215.           CloseRegKey $(KeyProduct)
  216.           CloseRegKey $(SoftNetRulesKey)
  217.           goto fatalregistry
  218.    endif
  219.    set NewValueList = +
  220.                         {{SoftwareType,0,$(!REG_VT_SZ),$(SoftwareType)},+
  221.             {MajorVersion,0,$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  222.             {MinorVersion,0,$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  223.             {Title,0,$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  224.             {Description,0,$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  225.             {PathName,0,$(!REG_VT_SZ),$(!STF_WINDOWSSYSPATH)},+
  226.             {ServiceName,0,$(!REG_VT_SZ),$(ProductSoftwareName)},+
  227.             {InstallDate,0,$(!REG_VT_DWORD),*($(Now),1)}}
  228.    Shell   $(UtilInf), AddValueList, $(KeyProduct), $(NewValueList)
  229.    ifint $($ShellCode) != 0
  230.           goto ShellCodeError
  231.    endif
  232.    set RegistryErrorIndex = $($R0)
  233.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  234.           CloseRegKey $(KeyProduct)
  235.           CloseRegKey $(SoftNetRulesKey)
  236.           goto fatalregistry
  237.    endif
  238.    set NewValueList = +
  239.                         {{type,0,$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  240.             {use,0,$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  241.             {bindform,0,$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  242.             {class,0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  243.             {bindable,0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  244.             {InfOption,0,$(!REG_VT_SZ),$(Option)}, +
  245.             {Infname ,0,$(!REG_VT_SZ),$(ProductInfName)}}
  246.    Shell  $(UtilInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  247.    ifint $($ShellCode) != 0
  248.           goto ShellCodeError
  249.    endif
  250.    set RegistryErrorIndex = $($R0)
  251.    CloseRegKey $(KeyProduct)
  252.    CloseRegKey $(SoftNetRulesKey)
  253.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  254.           Debug-Output "Resgitry error: add value list."
  255.           goto fatalregistry
  256.    endif
  257.    Shell $(UtilInf), AddHardwareComponent, $(ProductHardwareName),$(ProductInfName),$(ProductKeyName)
  258.    ifint $($R4) != -1
  259.           Set REMOVE_HARDWARE = >($(REMOVE_HARDWARE), $(CardKey)"\"$($R4))
  260.    endif
  261.    ifint $($ShellCode) != 0
  262.           goto ShellCodeError
  263.    endif
  264.    set RegistryErrorIndex = $($R0)
  265.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  266.           EndWait
  267.           CloseRegKey $($R1)
  268.           CloseRegKey $($R2)
  269.           CloseRegKey $($R3)
  270.           goto fatalregistry
  271.    Endif
  272.    set KeyParameters = $($R3)
  273.    set KeyAdapterRules = $($R2)
  274.    set AdapterNumber = $($R4)
  275.    set NewValueList = {{Manufacturer,0,$(!REG_VT_SZ),$(Manufacturer)},+
  276.                       {Title,0,$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  277.                       {Description,0,$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  278.                       {ProductName,0,$(!REG_VT_SZ),$(ProductHardwareName)},+
  279.                       {ServiceName,0,$(!REG_VT_SZ),$($R5)},+
  280.                       {InstallDate,0,$(!REG_VT_DWORD),*($(Now),1)}}
  281.    Shell  $(UtilInf), AddValueList, $($R1), $(NewValueList)
  282.    ifint $($ShellCode) != 0
  283.      goto ShellCodeError
  284.    endif
  285.    CloseRegKey $($R1)
  286.    set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  287.    set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  288.    set NewValueList = +
  289.                         {{type,0,$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  290.             {bindform,0,$(!REG_VT_SZ),$(TempBindForm)}, +
  291.             {class,0,$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  292.             {InfOption,0,$(!REG_VT_SZ),$(Option)}, +
  293.             {Infname ,0,$(!REG_VT_SZ),$(ProductInfName)}}
  294.    Shell  $(UtilInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  295.    ifint $($ShellCode) != 0
  296.           goto ShellCodeError
  297.    endif
  298.    set RegistryErrorIndex = $($R0)
  299.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  300.           CloseRegKey $(KeyParameters)
  301.           CloseRegKey $(KeyAdapterRules)
  302.           goto fatalregistry
  303.    endif
  304.    CloseRegKey $(KeyAdapterRules)
  305.    goto writeparameters
  306. configureadapter = +
  307.    OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  308.    Ifstr $(KeyProduct) == $(KeyNull)
  309.           set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  310.       goto fatalregistry
  311.    Endif
  312.    Shell $(UtilInf) FindService, $(KeyProduct)
  313.    Ifint $($ShellCode) != 0
  314.           Goto ShellCodeError
  315.    Endif
  316.    Ifstr(i) $($R0) != NO_ERROR
  317.         Goto fatalregistry
  318.    endif
  319.    set KeyParameters = $($R2)
  320.    CloseRegKey $($R1)
  321.    Ifstr $(KeyParameters) == $(KeyNull)
  322.           set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  323.       goto fatalregistry
  324.    endif
  325.    set ValueName = ""
  326.    set ValueData = ""
  327.    set ValueStr  = ""
  328.    set ValueList = {}
  329.    EnumRegValue $(KeyParameters) ValueList
  330.    ForListDo $(ValueList)
  331.           set ValueItem = $($)
  332.           set ValueName = *($(ValueItem),1)
  333.           set ValueData = *($(ValueItem),4)
  334.           ifstr(i) $(ValueName) == "IOBaseAddress"
  335.                  set IOBaseAddrIndex = $(ValueData)
  336.           endif
  337.    EndForListDo
  338.    set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  339.    ifstr(i) $(IOBaseAddrValue) == ""
  340.           set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  341.    endif
  342. cfgoptions = +
  343.    read-syms FileDependentDlg$(!STF_LANGUAGE)
  344.    ui start "InputDlg"
  345.    ifstr(i) $(DLGEVENT) == "CONTINUE"
  346.           set CommonStatus = STATUS_REBOOT
  347.       set IOBaseAddrIndex = $(Combo1Out)
  348.       ui pop 1
  349.    else-ifstr(i) $(DLGEVENT) == "EXIT"
  350.           ui pop 1
  351.       goto usercancel
  352.    else
  353.       ui pop 1
  354.       goto usercancel
  355.    endif
  356. writeparameters = +
  357.    Shell $(UtilInf),GetBusTypeDialog,$(ProductHardwareDescription) "1" "0"
  358.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  359.        Debug-Output "ShellCode error."
  360.        goto ShellCodeError
  361.    endif
  362.    set BusType = $($R1)
  363.    set BusNumber = $($R2)
  364.    set IOBaseAddrValue = *($(IOBaseAddrValues), +
  365.                           ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  366.    set NewValueList = {{MediaType,0,$(!REG_VT_DWORD),5},+
  367.                        {InterruptNumber,0,$(!REG_VT_DWORD),0},+
  368.                        {BusType,0,$(!REG_VT_DWORD),$(BusType)},+
  369.                        {BusNumber,0,$(!REG_VT_DWORD),$(BusNumber)},+
  370.                        {IOBaseAddress,0,$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  371.    Shell  $(UtilInf), AddValueList, $(KeyParameters), $(NewValueList)
  372.    CloseRegKey $(KeyParameters)
  373.    ifint $($ShellCode) != 0
  374.           Debug-Output "ShellCode error."
  375.       goto ShellCodeError
  376.    endif
  377.    set RegistryErrorIndex = $($R0)
  378.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  379.           Debug-Output "Registry error: Add value list"
  380.       goto fatalregistry
  381.    endif
  382.    goto end
  383. removeadapter = +
  384.    Set FLibraryErrCtl = 1
  385.    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  386.           Shell $(UtilInf), RemoveSoftwareComponent, $(Manufacturer),+
  387.                                                 $(ProductSoftwareName)
  388.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  389.          goto ShellCodeError
  390.       endif
  391.       set RegistryErrorIndex = $($R0)
  392.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  393.                  goto fatalregistry
  394.       endif
  395.    else
  396.           Debug-Output "Registry Base = "$(!NTN_RegBase)
  397.           Debug-Output "Product Name  = "$(ProductSoftwareName)
  398.           Shell $(UtilInf), RemoveHardwareComponent, $(Manufacturer),+
  399.                                                                  $(ProductSoftwareName), +
  400.                                                                  $(!NTN_RegBase)
  401.       ifint $($ShellCode) != $(!SHELL_CODE_OK)
  402.                  Debug-Output "ShellCode error"
  403.          goto ShellCodeError
  404.       endif
  405.       set RegistryErrorIndex = $($R0)
  406.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  407.                  goto fatalregistry
  408.       endif
  409.    endif
  410.    goto end
  411. UpgradeSoftware = +
  412.    ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  413.           OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  414.           Ifstr $(KeyProduct) != $(KeyNull)
  415.                  GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  416.                  set Version = *($(VersionInfo), 4)
  417.                  Split-String $(!NTN_Infname), "\", FilenameList
  418.                  QueryListSize ListSize $(FilenameList)
  419.                  set !UG_Filename = *($(FilenameList), $(ListSize))
  420.                  install "Install-Update"
  421.                  ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  422.                         goto fatal
  423.                  endif
  424.          SetRegValue $(KeyProduct) {MajorVersion,0,$(!REG_VT_SZ),$(ProductMajorVersion)}
  425.          SetRegValue $(KeyProduct) {MinorVersion,0,$(!REG_VT_SZ),$(ProductMinorVersion)}
  426.          endif
  427.    else
  428.           OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetworkCardKey
  429.        Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  430.                  GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  431.                  set ServiceName = *($(ServiceNameInfo), 4)
  432.                  OpenRegKey $(NetworkCardKey) "" "NetRules" $(MAXIMUM_ALLOWED) NetRuleKey
  433.                  Ifstr(i) $(NetRuleKey) == $(KeyNull)
  434.                         goto fatalregistry
  435.                  endif
  436.                  CloseRegKey $(NetRules)
  437.                  CloseRegKey $(NetworkCardKey)
  438.           else
  439.                  goto fatalregistry
  440.       endif
  441.       OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ServiceName)$(MAXIMUM_ALLOWED) ServiceKey
  442.       Ifstr(i) $(ServiceKey) != $(KeyNull)
  443.                  CloseRegKey $(ServiceKey)
  444.       else
  445.                  goto fatalregistry
  446.       endif
  447.    EndIf
  448. abandon = +
  449.    ForListDo $(REMOVE_HARDWARE)
  450.           Shell $(UtilInf), RemoveHardwareComponent, $(Manufacturer), +
  451.                                            $(ProductSoftwareName), +
  452.                                                                                    $($)
  453.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  454.                  goto ShellCodeError
  455.           endif
  456.           set RegistryErrorIndex = $($R0)
  457.           Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  458.                  goto fatalregistry
  459.           endif
  460.    EndForListDo
  461.    Ifstr(i) $(REMOVE_SOFTWARE) == TRUE
  462.           Shell $(UtilInf), RemoveSoftwareComponent, $(Manufacturer), +
  463.                                                          $(ProductSoftwareName), FALSE
  464.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  465.                  goto ShellCodeError
  466.           endif
  467.           set RegistryErrorIndex = $($R0)
  468.           Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  469.                  goto fatalregistry
  470.           endif
  471.    endif
  472.    goto end
  473. fatalregistry = +
  474.    Shell $(UtilInf) RegistryErrorString $(RegistryErrorIndex)
  475.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  476.           goto ShellCodeError
  477.    endif
  478.    set Error = $($R0)
  479.    goto fatal
  480. fatal = +
  481.    ifstr(i) $(!NTN_InstallMode) == install
  482.           read-syms MiscErrorString3$(!STF_LANGUAGE)
  483.           Shell $(SubInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(ErrorString)$(Error)
  484.    Else
  485.           Shell $(SubInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  486.    EndIf
  487.    ifint $($ShellCode) != 0
  488.           goto ShellCodeError
  489.    endif
  490.    goto setfailed
  491. ShellCodeError = +
  492.    read-syms ShellingError$(!STF_LANGUAGE)
  493.    Shell $(SubInf) SetupMessage $(!STF_LANGUAGE) "FATAL" $(ErrorString)
  494.    goto setfailed
  495. setfailed = +
  496.    set CommonStatus = STATUS_FAILED
  497.    ifstr(i) $(RemoveOnError) == TRUE
  498.           Set RemoveOnError = FALSE
  499.           goto abandon
  500.    else
  501.           goto end
  502.    EndIf
  503. end = +
  504.    Return $(CommonStatus)
  505. usercancel = +
  506.    Set CommonStatus = STATUS_USERCANCEL
  507.    Return $(CommonStatus)
  508. [Install-Update]
  509.    set STF_VITAL        = ""
  510.    AddSectionFilesToCopyList Files-LT200 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  511.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  512.    CopyFilesInCopyList
  513.    Exit
  514. [Install-Initial]
  515.    set STF_VITAL        = ""
  516.    AddSectionFilesToCopyList Files-LT200 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  517.    CopyFilesInCopyList
  518.    Exit
  519. [Source Media Descriptions]
  520.     1  = "Windows NT Advanced Server Setup Disk #1"    , TAGFILE = disk1
  521.     2  = "Windows NT Advanced Server Setup CD-ROM Disk"    , TAGFILE = disk2
  522. [ProductType]
  523. STF_PRODUCT  = LanmanNT
  524. STF_PLATFORM = I386
  525. [Files-Inf]
  526. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  527. [Files-LT200]
  528. 2,LT200.SYS , SIZE=999
  529. [LanguagesSupported]
  530.    ENG
  531. [OptionsTextENG]
  532.    LT200     = "DayStar Digital LocalTalk Adapter"
  533. [FileConstantsENG]
  534. ProCaption      = "LocalTalk Adapter Setup"
  535. ProCancel       = "Cancel"
  536. ProCancelMsg    = "LT200 LocalTalk Adapter is not correctly installed. "+
  537.                   "Are you sure you want to cancel copying files ?"
  538. ProCancelCap    = "Network Setup Message"
  539. ProText1        = "Copying:"
  540. ProText2        = "To:"
  541. Error           = "User has cancelled copying files. Copied files will be removed."
  542. FunctionTitle                 = "DayStar Digital LocalTalk Adapter Card Setup"
  543. ProductSoftwareDescription    = "DayStar Digital LocalTalk Adapter Driver"
  544. ProductHardwareDescription  = "DayStar Digital LocalTalk Adapter"
  545. AskLocationText = "Please enter the full path of the LocalTalk Adapter "+
  546.                   "distribution files.  If you want to install files from "+
  547.                   "the original Setup floppy disks, type a drive letter "+
  548.                   "(such as A:) and Setup will prompt you for the correct disk.  "+
  549.                   "Then choose continue."
  550. MajorVersion = "MajorVersion"
  551. MinorVersion = "MinorVersion"
  552. Version         = "Version "
  553. IOBaseAddrList          = ^(IOBaseAddrChoices, 1)
  554. IOBaseAddrValues        = ^(IOBaseAddrChoices, 2)
  555. ProductSoftwareTitle    = "Daystar Digital LocalTalk Adapter Driver"
  556. ProductHardwareTitle    = "DayStar Digital LocalTalk Adapter"
  557. [DialogConstantsENG]
  558. Help        = "&Help"
  559. Exit        = "Cancel"
  560. OK          = "OK"
  561. HelpContext = ""
  562. Continue    = "OK"
  563. Cancel      = "Cancel"
  564. [FileDependentDlgENG]
  565. Label1      = "I/O Base &Addr:"
  566. DlgType                 = "MultiCombo"
  567. DlgTemplate             = "SINGLE_COMBO"
  568. Caption                 = $(FunctionTitle)
  569. Combo1List              = $(IOBaseAddrList)
  570. Combo1Out               = $(IOBaseAddrValue)
  571. ComboListItemsIn          = {Combo1List}
  572. ComboListItemsOut         = {Combo1Out}
  573. HelpContext               = $(!IDH_DB_OEMNADLT_INS)
  574. [MiscErrorString1ENG]
  575. ErrorString = +
  576. " of the LocalTalk adapter driver is already installed in your system. "+
  577. "Use [Update] to update to newer versions."
  578. [MiscErrorString3ENG]
  579. ErrorString = +
  580. "Setup encountered the following error during installation. Try installing the "+
  581. "LocalTalk Adapter after rebooting your system. "$(LF)
  582. [ShellingErrorENG]
  583. ErrorString  = +
  584. "An internal error occurred. Contact Technical Support."
  585.  
  586.  
  587.  
  588.